package com.dong.applicationcontext.i18n;

import org.springframework.context.MessageSource;
import org.springframework.context.MessageSourceAware;
import org.springframework.context.support.ResourceBundleMessageSource;

/**
 * description
 *
 * @author Administrator 2021/09/06 19:48
 */
public class MyMessageSourceAware implements MessageSourceAware {

    private ResourceBundleMessageSource messageSource;

    @Override
    public void setMessageSource(MessageSource messageSource) {
        this.messageSource = (ResourceBundleMessageSource) messageSource;
    }

}
